<include file="Public/min-header" /> <!--引入 js css img 文件-->
</head>
<body>
    <!--导航  start //-->
    <include file="Public/header" />  <!--引入头部导航  //-->
    <!--导航 End  //-->
    <div id="main">
        <!--右边菜单-->
        <include file="User/menu" />
        <!--右边菜单End-->
        <div class="mainfr-box">
            <div class="place">
                <span>位置：</span>
                <ul class="placeul">
                    <li><a href="__MODULE__/User/index.html">首页➤</a></li>
                    <li><a href="__MODULE__/User/firstlevel.html">密保问题修改</a></li>
                </ul>
                <ul class="placeula">
                    <li><a href="javascript:location.reload()"><span class="placea"></span>刷新</a></li>
                    <li><a href="javascript:history.go(-1)"><span class="placea"></span>返回上一页</a></li>
                </ul>
            </div>
            <div class="clr"></div>
            <div class="main">

                <form method="post" onsubmit="return firstlevelcheck();" />
                <table width="100%" border="0" class="Register-table">
                    <!--<tr class="odd">
                        <th scope="row" width="130">会员编号：</th>
                        <td>{$Think.session.dluser.account}</td>
                        <th scope="row" width="130">呢称姓名：</th>
                        <td>{$Think.session.dluser.username}</td>
                    </tr>-->
                    <tr>
                        <th scope="row">密保问题：</th>
                        <td colspan="3">
                            <input type="text" disabled value="{$user.question}" class="dfinput" />
                        </td>
                    </tr>
                    <tr class="odd">
                        <th scope="row">原密保答案：</th>
                        <td><input name="old_password" type="text" class="dfinput" id="pwd" /></td>
                        <th scope="row">新密保答案：</th>
                        <td><input name="new_password" type="text" class="dfinput" id="repwd" /></td>
                    </tr>
                </table>
                <div class="button-box"><input class="button-style" type="submit" id="but" value="确认修改" ></div>
                </form>
            </div>
        </div>
        <!--foot-->
        <div class="clr"></div>
        <!--footer start //-->
        <include file="Public/footer" />  <!--引入底部 //-->
        <!--footer  end //-->
</body>
</html>
<script>
    function firstlevelcheck()
    {
        var pwd = $('input[name="old_password"]').val();
        var pwd1 = $('input[name="new_password"]').val();
        if (pwd == '')
        {
            alert('请输入原密码');
            return false;
        }
        if (pwd1 == '')
        {
            alert('请输入原密保问题');
            return false;
        }
        if (pwd == pwd1)
        {
            alert('新答案不能与原来的相同');
            return false;
        }
        return true;
    }
</script>